<%-- 
    Document   : deleteManager
    Created on : Dec 19, 2014, 5:12:02 PM
    Author     : DucND
--%>
<%@page import="dao.ManagerDAO"%>
<%
    String username = (String) request.getSession().getAttribute("Username");
    if (!ManagerDAO.isAdmin(username)) {
        response.sendRedirect("../public/index.jsp");
    }
    String username1 = request.getParameter("username");
    if (!username.equals(username1)) {
        ManagerDAO.delete(username1);
    }
    response.sendRedirect("listManager.jsp");
%>
